<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "https://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>ruby</Name>
        <Homepage>http://www.ruby-lang.org/en/</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <PartOf>programming.language.ruby</PartOf>
        <License>Ruby</License>
        <IsA>app:console</IsA>
        <Summary>An object-oriented scripting language</Summary>
        <Description>Ruby is a dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.</Description>
        <Archive sha1sum="844ede3938c652f5f9bf5dbf1b99f5a6c41b11b6" type="tarxz">https://cache.ruby-lang.org/pub/ruby/3.0/ruby-3.0.5.tar.xz</Archive>
        <BuildDependencies>
            <Dependency>tcl-devel</Dependency>
            <Dependency>gmp-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>gdbm-devel</Dependency>
            <Dependency>tcltk-devel</Dependency>
            <Dependency>libffi-devel</Dependency>
            <Dependency>openssl-devel</Dependency>
            <Dependency>libyaml-devel</Dependency>
        </BuildDependencies>
        <Patches>
            <!-- <Patch level="1">ruby-2.7.0-Remove-RubyGems-dependency.patch</Patch>
            <Patch level="1">ruby-2.7.0-Initialize-ABRT-hook.patch</Patch> -->
        </Patches>
    </Source>

    <Package>
        <Name>ruby</Name>
        <Summary>An object-oriented language for quick and easy programming</Summary>
        <RuntimeDependencies>
            <Dependency>tcl</Dependency>
            <Dependency>gmp</Dependency>
            <Dependency>zlib</Dependency>
            <Dependency>gdbm</Dependency>
            <Dependency>tcltk</Dependency>
            <Dependency>libffi</Dependency>
            <Dependency>openssl</Dependency>
            <Dependency>libyaml</Dependency>
            <Dependency>readline</Dependency>
        </RuntimeDependencies>
        <Files>
            <!-- ruby binaries -->
            <Path fileType="executable">/usr/bin</Path>

            <!-- ruby libraries -->
            <Path fileType="library">/usr/lib/ruby/3.0.0/</Path>
            
            <Path fileType="library">/usr/lib/libruby.so.3.0.5</Path>
            <Path fileType="library">/usr/lib/libruby.so.3.0</Path>
            <Path fileType="library">/usr/lib/libruby.so</Path>
            
            <Path fileType="library">/usr/lib/ruby/site_ruby/3.0.0/</Path>
            <Path fileType="library">/usr/lib/ruby/vendor_ruby/3.0.0/</Path>
            <!-- ruby man files -->
            <Path fileType="man">/usr/share/man/man1</Path>
            <!-- ruby doc files -->
            <Path fileType="doc">/usr/share/doc/ruby/LEGAL</Path>
            <Path fileType="doc">/usr/share/doc/ruby/LICENSE</Path>
            <Path fileType="doc">/usr/share/doc/ruby/README*</Path>
            <Path fileType="doc">/usr/share/doc/ruby/COPYING*</Path>

        </Files>
    </Package>

    <Package>
        <Name>ruby-devel</Name>
        <Summary>Development files for ruby</Summary>
        <RuntimeDependencies>
            <Dependency release="current">ruby</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/lib/pkgconfig/</Path>
            <Path fileType="header">/usr/include</Path>
        </Files>
    </Package>

    <Package>
        <Name>ruby-docs</Name>
        <Summary>Documentation files for ruby</Summary>
        <RuntimeDependencies>
            <Dependency release="current">ruby</Dependency>
        </RuntimeDependencies>
        <Files>
            <!-- ruby index files -->
            <Path fileType="doc">/usr/share/ri/</Path>
            
        </Files>
    </Package>

    <Package>
        <Name>rubygems</Name>
        <Summary>rubygems, The Ruby standard for packaging ruby libraries</Summary>
        <RuntimeDependencies>
            <Dependency>ruby</Dependency>
        </RuntimeDependencies>
        <Files>
            <!-- rubygems binary -->
            <Path fileType="executable">/usr/bin/gem</Path>
            <!-- rubygems gem libraries -->
            <Path fileType="library">/usr/lib/ruby/gems/</Path>
            <!-- ruby index files -->
            <Path fileType="data">/usr/share/ri/3.0.0/system/Gem</Path>
            <!-- rubygem man files -->
            <Path fileType="man">/usr/share/man/man5</Path>
        </Files>
    </Package>

    <History>
        <Update release="10">
            <Date>2022-11-24</Date>
            <Version>3.0.5</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="9">
            <Date>2021-06-28</Date>
            <Version>3.0.1</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="8">
            <Date>2020-04-26</Date>
            <Version>2.7.1</Version>
            <Comment>Minor version bump.</Comment>
            <Name>Blue Devil</Name>
            <Email>bluedevil@sctzine.com</Email>
        </Update>
        <Update release="7">
            <Date>2020-01-07</Date>
            <Version>2.6.5</Version>
            <Comment>Version bump.</Comment>
            <Name>Idris Kalp</Name>
            <Email>idriskalp@gmail.com</Email>
        </Update>
        <Update release="7">
            <Date>2019-10-01</Date>
            <Version>2.6.4</Version>
            <Comment>Version bump.</Comment>
            <Name>Mustafa Cinasal</Name>
            <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="6">
          <Date>2018-08-07</Date>
          <Version>2.5.0</Version>
          <Comment>Rebuild</Comment>
          <Name>Mustafa Cinasal</Name>
          <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="5">
            <Date>2018-06-06</Date>
            <Version>2.5.0</Version>
            <Comment>Rebuild for gdbm.</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
        <Update release="4">
          <Date>2018-01-31</Date>
          <Version>2.5.0</Version>
          <Comment>Release Bump</Comment>
          <Name>Mustafa Cinasal</Name>
          <Email>muscnsl@gmail.com</Email>
        </Update>
        <Update release="3">
          <Date>2017-02-02</Date>
          <Version>2.4.0</Version>
          <Comment>Release Bump</Comment>
          <Name>Muhammet Dilmaç</Name>
          <Email>m.dilmac@pisilinux.org</Email>
        </Update>
        <Update release="2">
            <Date>2016-06-09</Date>
            <Version>2.2.2</Version>
            <Comment>Release Bump</Comment>
            <Name>Pisi Linux Community</Name>
            <Email>admin@pisilinux.org</Email>
        </Update>
        <Update release="1">
            <Date>2016-03-04</Date>
            <Version>2.2.2</Version>
            <Comment>First release</Comment>
            <Name>Ayhan Yalçınsoy</Name>
            <Email>ayhanyalcinsoy@pisilinux.org</Email>
        </Update>
    </History>
</PISI>
